<%--
  Created by IntelliJ IDEA.
  User: ylp36
  Date: 2021/12/13
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<html>
<head>
    <title>老黄历</title>
</head>
<style>
    table{
        margin-left:300px;
        table-layout: fixed;
        width:1000px;
        height:200px;
        border:1px solid green;


    }
    td{
        white-space: nowrap;text-overflow: ellipsis;overflow: hidden;
        border:2px solid blue;
        background-color: bisque;

    }
    .div{
        overflow:auto;
    }
    a{
        margin-left:70%;
        text-decoration: none;
    }
</style>
<body>
<table>
    <c:forEach items="${sessionScope.lhl}" var="l" >
        <tr>
            <td><div class="div">id<</div>/td>
            <td><div class="div">阳历</div></td>
            <td><div class="div">阴历</div></td>
            <td><div class="div">五行</div></td>
            <td><div class="div">冲煞</div></td>
            <td><div class="div">彭祖百忌</div></td>
            <td><div class="div">吉神宜趋</div></td>
            <td><div class="div">宜</div></td>
            <td><div class="div">凶神宜忌</div></td>
            <td><div class="div">忌</div></td>
        </tr>
        <tr>
            <td><div class="div">${l.id}</div></td>
            <td><div class="div">${l.yangli}</div></td>
            <td><div class="div">${l.yinli}</div></td>
            <td><div class="div">${l.wuxing}</div></td>
            <td><div class="div">${l.chongsha}</div></td>
            <td><div class="div">${l.baiji}</div></td>
            <td><div class="div">${l.jishen}</div></td>
            <td><div class="div">${l.yi}</div></td>
            <td><div class="div">${l.xiongshen}</div></td>
            <td><div class="div">${l.ji}</div></td>

        </tr>
    </c:forEach>
</table>
<a  href="index.jsp" >回到首页</a>

</body>
</html>
